import request from '@/utils/request'

export const getQuestionList = (query) => {
  return request({
    url: '/business/question/list',
    method: 'get',
    params: query
  })
}

export const getQuestionById = (questionId, query) => {
  return request({
    url: `/business/question/${questionId}`,
    method: 'get',
    params: query
  })
}

export const addQuestion = (data) => {
  return request({
    url: '/business/question',
    method: 'post',
    data: data
  })
}

export const modifyQuestion = (data) => {
  return request({
    url: '/business/question',
    method: 'put',
    data: data
  })
}

export const delQuestion = (questionIds) => {
  return request({
    url: `/business/question/${questionIds}`,
    method: 'delete'
  })
}
